#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMainWindow>
#include <QFileDialog>
#include <QFileInfo>
#include <QImage>
#include <QLabel>
#include <QTextCodec>
#include <QMessageBox>
#include <QHBoxLayout>
#include <QScrollArea>
#include "Image.h"
#include<qimage.h>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_label_linkActivated(const QString &link);

    void on_actionopen_2_triggered();

    void on_actionsave_2_triggered();

    void on_actiongongn_triggered();

private:
    Ui::MainWindow *ui;
    unsigned char *mydata;
    Image myimg;
     QImage* img=new QImage;

};
#endif // MAINWINDOW_H
